package news.service;

import news.dao.AddPublishImpl;
import news.dao.IAddPublishDao;

/**
 * @author JiangJ
 * @date 2022/3/4 15:02
 */
public class AddPublishServiceImpl implements IAddPublishService {
    IAddPublishDao iAddPublishDao = new AddPublishImpl();

    @Override
    public void addNews(String theme, String title, String username, String digest, String content) {
        iAddPublishDao.addNews(theme, title, username, digest, content);
    }

    @Override
    public void addNewsRes(String respath) {
        iAddPublishDao.addNewsRes(respath);
    }
}
